EXP1:
======

#include <iostream.h>
#include<conio.h>
void main (void)
{
	long double apple;
	cout << The size of an integer is  << sizeof(int);
	cout <<  bytes.\n;
	cout << The size of a long integer is  << sizeof(long);
	cout <<  bytes.\n;
	cout << An apple can be eaten in   << sizeof(apple);
	cout <<  bytes!\n;
getch();
}



EXP2:
=====

#include <iostream.h>
#include<conio.h>
void main (void)
{
int month = 2, days = 28;
cout << Month  << month <<  has  << days <<  days.\n;
getch();
}


Exp3:
=====
#include <iostream.h>
#include<conio.h>
void main(void)
{
int length, width, area;
cout <<"This program calculates the area of a rectangle.\n";
	cout <<"What is the length of the rectangle? ";
	cin>>length;
	cout <<"What is the width of the rectangle? ";
	cin>>width;
	area = length * width;
	cout <<"The area of the rectangle is " << area << ".\n";
getch();
}



Exp4 :
========

//	This program demonstrates how cin can read multiple values
//	of different data types.
#include <iostream.h>

void main(void)
{
	int whole;
	float fractional;
	char letter;
	cout << "Enter an integer, a float, and a character: ";
	cin >> whole >> fractional >> letter;
	cout << "whole: " << whole << endl;
	cout << "fractional: " << fractional << "\n";
	cout << "letter: " << letter << endl;
}





Exp5:
=======
#include <iostream.h>
#include<string>
#include<conio.h>
void main(void)
{
	string name;
	cout << "What is your name? ";
	cin >> name;
	cout << "Good morning " << name << "\n";
getch();
}



EXP6:
=====

//	This program reads two strings into two character arrays.
#include <iostream.h>
#include<conio.h>
void main(void)
{
	char first[16], last[16];
	cout << "Enter your first and last names and I will\n";
	cout << "reverse them.\n"; 
	cin >> first >> last;
	cout << last << ", " << first << "\n";
getch();
}
 


EXP7:
======

// This program calculates the area of a circle.
// The formula for the area of a circle is Pi times
// the radius squared. Pi is 3.14159.
#include <iostream.h>
#include <math.h>      // needed for the pow function

void main(void)
{
	double area, radius;
	cout << "This program calculates the area of a circle.\n";
	cout << "What is the radius of the circle? ";
	cin >> radius;
	area = 3.14159 * pow(radius,2);
	cout << "The area is " << area;
}
